<%--
  Created by IntelliJ IDEA.
  User: han tao
  Date: 2023/4/20
  Time: 9:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<!-- 网页使用的语言 -->
<html lang="zh-CN">
<head>
    <!-- 指定字符集 -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>修改客户信息</title>
</head>
<body>
<div class="container" style="width: 400px;">
    <h3 style="text-align: center;">修改客户信息</h3>
    <form action="${pageContext.request.contextPath}/admin" method="post">
        <%--type=hidden  表单元素中存在元素，不会在页面上渲染，而是隐藏   --%>
        <input type="hidden" name="action" value="updateUserById" />
        <input type="hidden" name="id" value="${users.id}" >
        <div class="form-group">
            <label for="username">姓名：</label>
            <input type="text" class="form-control" id="username" name="username" value="${users.username}"  readonly="readonly" placeholder="请输入姓名" />
        <div class="form-group">
            <label for="password">密码：</label>
            <input type="password" class="form-control" id="password" name="password" value="${users.password}"   placeholder="请输入密码" />
        </div>
        <div class="form-group">
            <label for="email">Email：</label>
            <input type="text" id="email" class="form-control" name="email" value="${users.email}" placeholder="请输入邮箱地址"/>
        </div>
        <div class="form-group" style="text-align: center">
            <input class="btn btn-primary" type="submit" value="提交" />
            <input class="btn btn-default" type="reset" value="重置" />
            <input type="button" name="Submit" value="返回" onclick="javascript:window.history.back(-1);">
        </div>
        </div>
    </form>
</div>
</body>
</html>
